// 使用vuex
// 1.0 导入
import Vuex from 'vuex'
import Vue from 'vue'
import cart from './modules/cart.js'
import user from './modules/user.js'
// 2.0 注册
Vue.use(Vuex)
// 3.0 创建vuex实例
const store = new Vuex.Store({
	state: {},
	mutations: {},
	actions: {},
	getters: {},
	modules: {
		cart,
		user
	}
})

export default store
